	package com.kaishengit.util;
	import java.text.SimpleDateFormat;
	import java.util.Calendar;

	public class GetData {

			public static String getTime(String time){
				String result = "";
				Calendar c = Calendar.getInstance();
				
				try {
					c.setTime(new SimpleDateFormat("yyyy-MM-dd").parse(time));
				} catch (Exception e) {
					e.printStackTrace();
				}
				long second = (System.currentTimeMillis() -c.getTimeInMillis() )/1000;
				if(second <(( 60*60*24*30)*7)){
					result = "。。";
				}else if(second < ((( 60*60*24*30)*7)*30)){
					result = "һ��֮��";
				}else if(second < ((( 60*60*24*30)*7)*90)){
					result = "һ����֮��";
				}else if(second < ((( 60*60*24*30)*7)*180)){
					result = "����֮��";
				}
				return result;
			}
			
			
		

	}


